*{
	margin: 0;
	padding: 0;
}
body {
	background: #f2f2f2;
}
#html2canvas {
	width: 100%;
	max-width: 26rem;
	margin: 0 auto;
	height: auto;
	overflow: hidden;
}

#html2canvas .btn-shot {
	background: #e38497;
	width: 6rem;
	height: 1.8rem;
	line-height: 1.8rem;
	text-align: center;
	font-size: .76rem;
	margin: 0 auto;
	border-radius: .8rem;
	color: #fff;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.materail{
	width: 100%;
	height: auto;
	position: relative; /* 必须是relative布局，不能用absolute或fixed，这里出错 */
	left: 110%;
}

/* 原材料 */
.materail .img_bg{
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
}
.materail.active{
	width: 80%;
	height: auto;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
#qrcode{
	position: absolute;
	bottom: 2rem;
	right: 2rem;
}

/* 遮罩层 */
#mask{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0.8;
	display: none;
}

/* 生成的内容 */
.generate {
	width: 80%;
	height: auto;
	position: fixed;
	display: none;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.generate .hint{
	position: fixed;
	padding-top: 30px;
	font-size: 0.75rem;
	color: #666;
	left: 50%;
	transform: translate(-50%, 0);
}
#shotresult{
	width: 100%;
	height: auto;
	opacity: 0;
}
#canvas{
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	opacity: 0;
}

/* toast */
.toast{
	max-width: 50%;
	background: #666;
	color: #fff;
	border-radius: 0.2rem;
	padding: 0.3rem 1rem;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: none;
	font-size: .75rem;
}